#include<iostream>
using namespace std;
int main(){
 int a,b,n;
 cin>>a>>b>>n;
 cout<<(b-a)*(n-1)+a; 
}